package com.sskj.one.transaction;


import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.one.bean.Stock;
import com.sskj.one.presenter.BasePresenter;

import java.util.List;

/**
 * @author Hey
 * Create at  2019/05/28
 */
class ChartPresenter extends BasePresenter<ChartFragment> {

    public void getStockInfo() {
        httpService.getStockInfo()
                .tag(this)
                .execute(new JsonCallBack<HttpData<List<Stock>>>(this) {
                    @Override
                    public void onHTTPSuccess(HttpData<List<Stock>> data) {
                        mView.setChart(data.getData());
                    }
                });
    }
}
